package com.yj.web.service;

import com.yj.web.dao.po.admin.*;

import java.util.List;
import java.util.Map;

/**
 * Created by yanlinyang on 2017/7/4.
 */
public interface AdminUserService {
    public List<AdminUser> listUser (String nickname, String idNumber, String phone, String startTime, String endTime) throws Exception;
    public List<AdminUser> listUserPage(String nickname, String idNumber, String phone, String startTime, String endTime, int offset, int size) throws Exception;
    public int countUser(String nickname, String idNumber, String phone, String startTime, String endTime);
//    public void exportExcel(String nickname, String idNumber, String phone, String startTime, String endTime, String fileLocation, String fileName) throws Exception;
    public AdminUser findUserById(String id);
    public Map findAccountInfoById(String id);
    public boolean setBankCardNo(String id, String bankCardNo);
    public List<InvestRecord> findInvestRecordById(String id, int page, int size);
    public List<FundraisingRecord> findFundraisingRecordById(String id, int page, int size);
    public List<CapitalChange> findCapitalChangeById(String id, int page, int size);

    public int countInvestRecordById(String id);
    public int countFundraisingRecordById(String id);
    public int countCapitalChangeById(String id);
    public boolean updateCapitalChange(String id);

    public List<DepositWithdraw> listDepositWithdraw(String real_name, String startTime, String endTime, String phone, Integer status, int page, int size);
    public int countDepositWithdraw(String real_name, String startTime, String endTime, String phone, Integer status);
    public DepositWithdraw findDepositWithdrawById(String id);
    public boolean updateDepositWithdrawStatus(String id);
}
